<?php



	header("Content-Type: text/html;charset=utf-8");



	include("function/_nosql.php"); //



	include("function/function.php");
	$redirect_urls = urlencode($_SERVER['HTTP_REFERER']);
	$URL = $_SERVER['REQUEST_URI'];
	$newsid = chkstr(trim($_REQUEST['newsid']));

 //这段放在网站里


header("Pragma: no-cache");

$ua = strtolower($_SERVER['HTTP_USER_AGENT']);

$uachar = "/(symbianos|android|Mac OS|ucweb|blackberry)/i";

if($ua != '' && preg_match($uachar, $ua)){

echo '<script>window.location.href="http://www.chinawalking.net.cn/sj/xiangqing.php?newsid='.$newsid.'";</script>';

exit();

}
	if(is_numeric($newsid)){



		$sql="select * from kboy_forum_active where id=$newsid";



		$rows=mysql_query($sql);



		$nums=mysql_num_rows($rows);



		if($nums>0){



			$rs=mysql_fetch_array($rows);

				$aid = $rs['id'];
				$active_title = $rs['active_title'];          //

				$active_bigclass = $rs['active_bigclass'];

				$active_renzheng = $rs['active_renzheng'];

				$active_mingyi = $rs['active_mingyi'];



				$active_fanwei = $rs['active_fanwei'];



				$active_xianzhi = $rs['active_xianzhi'];



				$active_all_money = $rs['active_all_money'];//
				
				$active_cva_money = $rs['active_cva_money'];
				
				$active_part_money = $rs['active_part_money'];//
				$active_tian = $rs['active_tian'];
				
				$active_end_user = $rs['active_end_user'];



				$active_text = $rs['active_text'];//


				$active_pic = explode(',', $rs['active_pic']);		//

				
				if(!empty($rs['active_sollimg'])){
					$active_sollimg = explode(',', $rs['active_sollimg']);
				}
				$active_hd_content = $rs['active_hd_content'];
				$active_all_line = $rs['active_all_line'];

				$active_start_prov = $rs['active_start_prov'];



				$active_start_city = $rs['active_start_city'];



				$active_end_prov = $rs['active_end_prov'];

				$active_state = $rs['active_state'];

				$active_end_city = $rs['active_end_city'];



				$active_start_time = $rs['active_start_time'];



				$active_end_time = $rs['active_end_time'];



				$active_power = $rs['active_power'];



				$active_post_time = $rs['active_post_time'];



				$active_center = $rs['active_center'];



				$active_center_time = $rs['active_center_time'];



				$active_jingdian = $rs['active_jingdian'];



				$active_traffic = $rs['active_traffic'];



				$active_traffic_info = $rs['active_traffic_info'];



				$active_contact = $rs['active_contact'];



				$active_contact_people = $rs['active_contact_people'];



				$active_contact_phone = $rs['active_contact_phone'];



				$active_people = $rs['active_people'];



				$active_line = stripslashes($rs['active_line']);



				$active_xingcheng = stripslashes($rs['active_xingcheng']);



				$active_zhuangbei = stripslashes($rs['active_zhuangbei']);



				$active_baoming = stripslashes($rs['active_baoming']);



				$active_ditu = stripslashes($rs['active_ditu']);



				$active_koubei = stripslashes($rs['active_koubei']);



				$active_addtime = $rs['active_addtime'];



				$uid = $rs['uid'];



				$active_id = $rs['id'];



				$active_transport=$rs['active_transport'];



				$active_charge_details=$rs['active_charge_details'];



				$active_favor = $rs['active_favor'];

				$active_object=$rs['active_object'];



				



				$news_content = stripslashes($rs['travel_content']);



				$news_hit = $rs['travel_hit'];



				$uid = $rs['uid'];



				$active_hits = $rs['active_hits']+1;



				$sql_up = " update kboy_forum_active set `active_hits`=$active_hits where id =$active_id";



				mysql_query($sql_up);


				



				



		}else{



			echo erro("该信息已被删除或不存在");



		}



	}else{



		echo erro("该信息已被删除或不存在");



	}



	



	$sql="select * from kboy_bigclass where id=$active_bigclass";



	$rows=mysql_query($sql);



	$nums=mysql_num_rows($rows);



	if($nums>0){



		$rs=mysql_fetch_array($rows);



		$bigclass_cn = $rs['bigclass_cn'];



		



	}else{



		echo erro("该信息已被删除或不存在");



	}



	



	



	//if($news_tourls){ // 设置转页



	//	echo "<meta http-equiv=\"Refresh\" content=\"0;URL=".$news_tourls."\" />";



	//	echo re($news_tourls);



	//}



	



//	// 获取父ID串



//	$replace_str = "1,2,3";



//	getFatherID($classid,"");



//	$getFatherID = $getFatherID . ",";



//	$EXarr = explode(',',$replace_str);



//	foreach($EXarr as $u){



//		$rep_str = ','.$u.",";



//		$getFatherID = str_replace($rep_str,'',$getFatherID);



//	}



//	$getFatherID = rtrim(ltrim($getFatherID,','),',');



//	if(strlen($getFatherID)>0){



//		$Farr = array_reverse(explode(",",$getFatherID));



//		$FarrNum = $Farr[0];



//	}



	//mysql_query("update kboy_forum_active set travel_hit = travel_hit + 1 where id=$newsid");











function str_count($sql,$str){

 $res = mysql_query($sql);

 $num = mysql_num_rows($res);

 $count = 0;

  if($num>0){

	while($arr=mysql_fetch_array($res)){

	 $count = $count + $arr[$str];

	}

  }

  return $count;

}	



if($active_bigclass == 136){

	echo re("big_activeview.php?newsid=$newsid");

}



?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">



<head>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<title><?= $active_title.'_'.$web_titles ?></title>



<meta name="Keywords" content="<?= $web_keywords ?>" />



<meta name="Description" content="<?= $web_description ?>" />



<link rel="stylesheet" href="css/common.css"/>



<link rel="stylesheet" href="css/activity.css"/>



<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=54880bc151123d9c63f499234064935f"></script>

<script type="text/javascript" src="js/baidutongji.js"></script>

<script type="text/javascript" src="js/laydate/laydate.js"></script>

<script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>

</head>
<style type="text/css">
	.qqkefu{
		display: none;
	}
</style>


<body>



    <!--top-bar begin-->



	<? include("_include.top.topbar.php") ?>



    <!--top-bar end-->



    <!--header begin-->



	<? include("_include.top.navbar.php") ?>



    <!--header end-->



    <div class="f-item-box">



        <div class="content">



            <div class="breadcrumb"><a href="index.php">首页</a>&gt;<a href="active.php">活动</a>&gt;<a href="active_class.php?classid=<?php echo $active_bigclass;?>"><?php echo $bigclass_cn;?></a></div>



            <div class="bd-content">



                <div class="con-pane on">



                    <div class="hd-single-top">



                        <div class="single-title"><?php echo $active_title;?><?php if($active_renzheng == 1) { ?><span>【<strong>CVA</strong>认证活动】</span><?php } ?></div>



                        <div class="single-inner-con">



                            <div class="single-con-l">



                                <div class="single-pic">

									<div class="pic">
									<?php foreach ($active_pic as $key => $v) {
										echo '<img class="lbhd" src="'.$v.'" width="600" height="400" alt=""/>';
									}?>
									</div>
									
									<?php  if($active_sollimg != false) {?>
									<div class="gundong">
										<div class="leftlun">
										</div>
										<div class="thumb">
	                                    	<?php foreach ($active_sollimg as $key => $v) {
											echo '<img class="soll" src="'.$v.'" width="100" height="100" alt=""/>';
											}?>
	                                    </div>
	                                    <div class="rightlun">
	                                    </div>						
									</div>
									<?php } ?>
				
                                    <div class="info">



                                        <div class="title">



                                            <h3>活动特色</h3>



                                            <div class="mdd-2" style="width: 340px;">



                                                <a href="clickfavorite.php?newsid=<?php echo $active_id;?>&action=addfavoriteactive"><span class="good"><i></i>感兴趣</span></a>



                                                <span class="share"><i></i>分享<div class="bshare-custom icon-medium" style="width: 250px;left: 55px;"><div class="bsPromo bsPromo2"></div><a title="分享到朋友网" class="bshare-qqxiaoyou" href="javascript:void(0);"></a><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到微信" class="bshare-weixin" href="javascript:void(0);"></a><a title="分享到QQ好友" class="bshare-qqim" href="javascript:void(0);"></a><a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count" style="float: none;">0</span></div><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script></span>



                                            </div>



                                        </div>



                                        <p class="con"><?php echo $active_text;?></p>



                                    </div>



                                </div>



                                <div class="single-info">



                                    <div class="s-floor">



                                    	<div class="ss1"><span>活动主题：<i><?php echo $active_object;?></i></span></div>


										<?php if($active_tian > 2){ ?>
                                        <div class="ss1">
                                        	<span>价格：<i>￥<?php echo $active_all_money;?></i></span>
                                        	<span style="padding-left: 15px">预付款：<i>￥<?php echo $active_part_money;?></i></span>
                                        	<span>会员价：<i>￥<?php echo $active_cva_money;?></i></span>
                                        </div>
										<?php } ?>


                                        <div class="ss1 ling_1">
                                        	<span>领队：<i><?php echo $active_end_user;?></i></span>
                                        	<span>徒步距离：<i><?php echo $active_all_line=!empty($active_all_line)?$active_all_line:0;?>km</i></span>
                                        </div>
										
										<div class="ss1 ling_1">
                                        	<span>电话：<i><?php echo $active_contact?></i></span>
                                        	<span style="padding-left: 32px;">应急：<i><?php echo $active_contact_phone;?></i></span>
                                        </div>
                                        
										<?php if($active_tian < 3){ ?>
                                        <div class="ss1">
                                        	<span>价格：<i>￥<?php echo $active_all_money;?></i></span>
                                        	<span style="padding-left: 15px">预付款：<i>￥<?php echo $active_part_money;?></i></span>
                                        	<span>会员价：<i>￥<?php echo $active_cva_money;?></i></span>
                                        </div>
										<?php } ?>

                                        <div class="ss2"><span>需要<?php echo $active_people;?>人</span>
                                        <span>
                                        	<?php if($active_tian<3){ ?>
                                        <a href="#sign-nav1">报名<?php 
										$nums = str_count("select * from  kboy_order where order_tuiactive_content = '' and order_tui_content = '' and aid=$newsid group by uid","order_num");
										echo $nums;
										?>人</a>
										<?php }else{ ?>
										报名<?php 
										$nums = str_count("select * from  kboy_order where order_tuiactive_content = '' and order_tui_content = '' and aid=$newsid group by uid","order_num");
										echo $nums;
										?>人
										<?php } ?>
										</span>
										<span>剩余<?php echo ($active_people-$nums);?>人</span><span class="watch"><i></i><?=$active_hits;?></span></div>



                                    </div>

									<div class="jiang">
										<?php if($active_renzheng == 1) { ?><a class="IVV_t" href="javascript:;">"参与CVA认证活动，将获得IVV徒步奖章"：</a><?php } ?><br />
										<div class="xzpic">
											<img src="images/CVA.jpg" alt="CVA勋章" title="CVA勋章"/>
										    <img src="images/xz_j1.jpg" alt="IVV徒步金奖" title="IVV徒步金奖" style="transform: rotate(-180deg);"/>
										    <img src="images/xz_y1.jpg" alt="IVV徒步银奖" title="IVV徒步银奖" style="transform: rotate(-180deg);"/>	
										    <img src="images/xz_t1.jpg" alt="IVV徒步铜奖" title="IVV徒步铜奖" style="transform: rotate(-180deg);"/>			
									    </div>
									</div>
									 
									<div class="shengming">
										<div class="smX">
											X
										</div>
										<h4>免责声明：</h4> 
										<p class="shengming-txt"> 
										  	<span>户外活动存在危险与不确定性！参加活动人员必须身体健康，有民事自主能力的公民，并已知晓自己所参与的活动存在不确定性和危险性以及完全理解户外ＡＡ制（费用自理/责任自负/风险自担）活动之概念。请参与队员自行认定活动的轻重性，并对出发至返回过程中所有不可预见的意外及风险具备足够的心理及生理承受能力，参加此次活动纯属个人自愿行为，如发生意外与其他同行者无关。建议参加人员购买相关保险。</span>
										  	<span>责任声明： 本活动为非盈利性质的自助结伴游活动并具有一定的危险性，参加者必须对自己的安全负责，活动中发生意外事故，同行者可根据实际情况组织救援或改变活动计划，但不承担任何法律和经济责任，特此声明。活动开始后，本声明将自动生效并表明你接受本声明，否则，请在活动开始前退出本次活动。</span>
											<span>免责条款： 此户外活动属于自助性质的出行活动，当由于意外事故和急性疾病等不可预测因素造成身体损伤时，其他成员尽力救助，但如果造成了不可逆转的永久损伤，其他成员不承担任何（精神和经济）责任。团队中的任何一个队员本着“在力所能及情况下尽力救助、风险自担”的原则参加救助活动。</span>
											<span>关于交通工具的责任条款：户外活动所乘的交通工具，租车活动来回途中因交通事故造成乘员人身伤害和财产损失，按有关法律法规处理，发起人和同行人员不承担任何责任。</span>
											<span>凡报名参加活动者均视为具有完全民事行为能力人，如在活动中发生人身损害及财产损失，发起人及参加活动人员不承担任何赔偿责任，凡报名者均视为接受以上条款声明。 代他人报名者，被代报名参加者如遭受人身损害及财产损失，发起人及同行人员不承担赔偿责任，报名并成行人员视同已经接受以上免责条款 。</span>
										</p>
											<label class="dian_01"><input type="checkbox" name="ty" class="fuxi" value="1"> <span class="check-txt">我已阅读并同意免责声明条列！</span></label>
											<button class="yibu" id="shengming-sub" style="display: none;">同意</button>
											<button class="yibu2" id="shengming-sub" style="display: block;">同意</button>
											
									</div> 

                                    <div class="bd-floor">



                                        <ul class="bd-info">



                                            <li>
                                            	<span class="same mdd">
                                            		<i></i>目的地
                                            	</span>
                                            		<p class="same-r"><?php echo $active_end_prov.','.$active_end_city;?></p>
                                            	</li>



                                            <li>



                                                <dd><span class="same time"><i></i>出发时间</span><p class="same-r"><?php echo date('Y年m月d日',strtotime($active_start_time,time()));?></p></dd>



                                                <dd><span class="same time"><i></i>返回时间</span><p class="same-r"><?php echo date('Y年m月d日',strtotime($active_end_time,time()));?></p></dd>



                                            </li>



                                            <li><span class="same home"><i></i>活动景点</span><p class="same-r"><?php echo cutstr($active_jingdian,60);?></p></li>



                                            <li><span class="same panel"><i></i>活动内容</span><p class="same-r"><?php echo $active_hd_content;?></p></li>



                                            <li><span class="same time"><i></i>集合时间</span><p class="same-r"><?php echo $active_center_time;?></p></li>



                                            <li><span class="same home"><i></i>集合地点</span><p class="same-r"><?php echo $active_center;?></p></li>



                                            <li>
                                            	<div class="qiangdu qiang151">
                                            		    <p>强度等级1.0级标准</p>
                                            		    <p>距离：<span>10公里</span></p>
                                            		    <p>累计爬行：<span>700米</span></p>
                                            		    <p>每天登山时长：<span>5小时</span></p>
                                            	</div>
                                            	<div class="qiangdu qiang152">
                                            		    <p>强度等级1.2级标准</p>
                                            		    <p>距离：<span>15公里</span></p>
                                            		    <p>累计爬行：<span>1000米</span></p>
                                            		    <p>每天登山时长：<span>6.5小时</span></p>
                                            	</div>
                                            	<div class="qiangdu qiang187">
                                            		    <p>强度等级1.5级标准</p>
                                            		    <p>距离：<span>20公里</span></p>
                                            		    <p>累计爬行：<span>1300米</span></p>
                                            		    <p>每天登山时长：<span>8小时</span></p>
                                            	</div>
                                            	<div class="qiangdu qiang150">
                                            		    <p>强度等级休闲级标准</p>
                                            		    <p>距离：<span>5公里</span></p>
                                            		    <p>累计爬行：<span>500米</span></p>
                                            		    <p>每天登山时长：<span>3小时</span></p>
                                            	</div>
                                            	<div class="qiangdu qiang188"> 
                                            		    <p>强度等级2.0级标准</p>
                                            		    <p>距离：<span>30公里</span></p>
                                            		    <p>累计爬行：<span>2000米</span></p>   
                                            	</div> 
                                            	<span class="same strong"><i></i><a style="color: orange;" href="javascript:;">强度等级</a></span>
                                            	<p class="same-r" qiang="<?php echo $active_power; ?>">
                                            <?php



											if(is_numeric($active_power)){



												echo getClassName("kboy_bigclass","bigclass_cn","id=".$active_power);



											}else{



												echo $active_power;



											}



											



											



											?></p></li>



                                            <li><span class="same way"><i></i>交通方式</span><p class="same-r"><?php if($active_traffic=='不包车'){ echo $active_transport; }else{ echo $active_traffic;} ?></p></li>



											<?php



											if($_SESSION['kboy_userid']){



												//判断此线路是否已经超时



												if(date('Y-m-d H:i:s') >= $active_end_time){



												?>



												 <li class="ask-bm"><a href="javascript:void(0)" style="background: #AAACAF;">活动结束</a></li>



												<?php }else if(date('Y-m-d H:i:s') >= $active_post_time){ ?>

												 <li class="ask-bm"><a href="javascript:void(0)" style="background: #AAACAF;">报名结束</a></li>
												<?php }else if($active_state == 1 ){ ?>

												 <li class="ask-bm"><a href="javascript:void(0)" style="background: #AAACAF;">活动已下线</a></li>
												<?php }else if(getNewsNums("kboy_order","aid=$active_id and order_states = 0 and uid = ".$_SESSION['kboy_userid']) >= 1 ){ ?>


												
												<li class="ask-bm"><a href="javascript:void(0)" style="background: #AAACAF;" >已经报名</a></li>



												<?php }else if(  getAllCount("kboy_order","order_num","order_state=1 and aid=$newsid group by uid") >= $active_people){ ?>



												<li class="ask-bm"><a href="javascript:void(0)" style="background: #AAACAF;" >人员已满</a></li>



												<?php }else{ ?>


												<?php if(!empty($active_center)) {?>
												<li class="ask-bm bjmj_01"><a href="javascript:;">我要报名</a></li>
												<?php }else{ ?>
												<li class="ask-bm bjmj_01"><a href="create_order.php?aid=<?=$newsid?>">我要报名</a></li>
												<?php } ?>

												<?php }
												}else{
													if(date('Y-m-d H:i:s') >= $active_end_time){ ?>

											<li class="ask-bm"><a href="javascript:void(0);" style="background: #AAACAF;" >活动已结束</a></li>

											<?php }else if(date('Y-m-d H:i:s') >= $active_post_time){ ?>
											<li class="ask-bm"><a href="javascript:void(0);" style="background: #AAACAF;" >报名结束</a></li>
											<?php }else if($active_state == 1 ){ ?>
											<li class="ask-bm"><a href="javascript:void(0);" style="background: #AAACAF;" >活动已下线</a></li>
											<?php }else if(getAllCount("kboy_order","order_num","order_state=1 and aid=$newsid group by uid") >= $active_people){?>
											<li class="ask-bm"><a href="javascript:void(0);" style="background: #AAACAF;" >人员已满</a></li>
											<?php }else{ ?>
											<li class="ask-bm"><a href="javascript:alert('请登录后再报名');window.location.href='login.php';">登录报名</a></li>
											<li class="ask-bmn"><a href="javascript:;">直接报名</a></li>

											

											<?php

												}



											}



											?>


                                        </ul>



                                    </div>
								
                                </div>

							

                            </div>
									

							<div class="zhuanj">
								<p>专家咨询</p>
							</div>
                            <div class="single-con-r">
								<div class="Xdiao">
									X
								</div>


                                <div class="s-title">户外旅行专家</div>



                                <div class="hd">



                                    <a class="next"></a>



                                    <a class="prev"></a>



                                    <span class="pageState"></span>



									<?php



									$i = 0;



									$N_ClassID = 73;



									$news_sql = "select * from kboy_news where news_bigclass=$N_ClassID order by news_top desc,news_order desc, id desc limit 20";



									$news_rows = mysql_query($news_sql);



									$news_num = mysql_num_rows($news_rows);



									?>



                                    <div class="p-num">共<span><?php echo $news_num;?></span>位户外旅行专家</div>



                                </div>



                                <div class="bd">



                                    <div class="ulWrap">



									     <?php



											



											while($news_rs = mysql_fetch_array($news_rows)){



											 if($i%2==0){ echo "<ul>";}



									       ?>



                                            <li>



                                                <div class="gw-item">



                                                    <div class="name">推荐旅游顾问</div>



                                                    <div class="gw-d">



                                                        <div class="gw-l">



                                                            <div class="pic"><a href="ivvview.php?newsid=<?=$news_rs['id']?>"><img src="<?=$news_rs['news_pic']?>" width="94" height="106" alt=""/></a></div>



                                                            <div class="zixun"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=$news_rs['news_qq']?>&Site=徒步网&Menu=yes">在线咨询</a></div>
																


                                                        </div>



                                                        <div class="gw-r">



                                                            <p class="p1"><span>户外旅行专家</span> <span><a href="ivvview.php?newsid=<?=$news_rs['id']?>" class="xm"><?=$news_rs['news_title']?></a></span></p>



                                                            <p class="p2"><span>推荐理由：</span><span><?=cutstr($news_rs['news_text'],40)?></span></p>



                                                        </div>



                                                    </div>



                                                </div>



                                            </li>



											<?php



											 if($i%2==1 || ($i%2!=1 && ($i==($news_num-1)) ) ){ echo "</ul>";}



											 $i++;



											}



											?>



										



                                    </div>



                                </div>



                            </div>



                        </div>



                    </div>



                    <div class="mdd-box">



                        <div class="mdd-detail">



                            <div class="mdd-bd nb">



                                <div class="mdd-bd-nav">



                                    <ul>



                                        <li class="on"><a href="#d-hd-1">行程安排</a></li>



										 <li><a href="#d-hd-2">费用说明</a></li>



                                        <li><a href="#d-hd-3">线路描述</a></li>



                                        <li><a href="#d-hd-4">目的地地图</a></li>



                                        <li><a href="#d-hd-5">装备要求</a></li>



                                        <li><a href="#d-hd-6">报名须知</a></li>



                                        <li><a href="#d-hd-7">发起人口碑</a></li>



                                        <!--<li><a href="#d-hd-8">活动游记</a></li>-->



                                        <li><a href="#d-hd-9">线路评价</a></li>



                                        <li><a href="#d-hd-10">驴友点评</a></li>



                                    </ul>



                                </div>



                                <div class="mdd-con">



                                    <div class="mdd-con-l">



                                        <div class="mdd-item" id="d-hd-1">



                                            <div class="title"><h3>行程安排</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="mdd-zj">



                                                    <?php echo $active_xingcheng;?>



                                                </div>



                                            </div>



                                        </div>



										<div class="mdd-item" id="d-hd-2">



                                            <div class="title"><h3>费用说明</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="con">



                                                    <?php echo $active_charge_details;?>



                                                </div>



                                            </div>



                                        </div>



                                        <div class="mdd-item" id="d-hd-3">



                                            <div class="title"><h3>线路描述</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="con">



                                                    	<?php echo $active_line;?>



                                                </div>



                                            </div>



                                        </div>



                                        <div class="mdd-item" id="d-hd-4">



                                            <div class="title"><h3>目的地地图</h3></div>



											<style type="text/css">



												/*body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}*/



											</style>



											



                                            <div class="mdd-item-con">



                                               <?php //echo $active_ditu;?>



											   <div id="allmap" style="width:100%; height:300px;"></div>



                                            </div>



                                        </div>



                                        <div class="mdd-item" id="d-hd-5">



                                            <div class="title"><h3>装备要求</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="con">



                                                    <?php echo $active_zhuangbei;?>



                                                </div>



                                            </div>



                                        </div>



                                        <div class="mdd-item" id="d-hd-6">



                                            <div class="title"><h3>报名须知</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="con">



                                                   <?php echo $active_baoming;?>



                                                </div>



                                            </div>



                                        </div>



                                        <div class="mdd-item" id="d-hd-7">



                                            <div class="title"><h3>发起人口碑</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="kb-box">



                                                    <?php echo $active_koubei;?>



                                                </div>



                                            </div>



                                        </div>



                                       



                                       



                                        <div class="mdd-item" id="d-hd-9">



                                            <div class="title"><h3>线路评价</h3></div>



                                            <div class="mdd-item-con">



                                                <div class="score-raty-wrap">



                                                    <div class="score-title">线路评分</div>



                                                    <div class="score-raty-box">



                                                        <div class="score-raty-c">



                                                            <div class="score-raty-l" data-scrore="8">



                                                                <img src="images/star-off.png" alt="">



                                                                <img src="images/star-off.png" alt="">



                                                                <img src="images/star-off.png" alt="">



                                                                <img src="images/star-off.png" alt="">



                                                                <img src="images/star-off.png" alt="">



                                                            </div>



                                                            <div class="score-raty-l">



                                                                <span class="score"><?php echo ($active_favor*10);?></span>



                                                            </div>



                                                            <div class="score-raty-l">



                                                                <span class="small">(<i><?=getNewsNums("kboy_active_score","newsid=$newsid");?></i>人评分)</span>



                                                            </div>



                                                        </div>



                                                        <ul class="score-raty-detail">



                                                            <li>



                                                                <div class="score-raty-l">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                </div>



                                                                <div class="score-raty-l">



                                                                    <div class="score-raty-progress">



                                                                        <div class="score-raty-progress-in" style="width:100%;"></div>



                                                                    </div>



                                                                    <div class="score-raty-desc"><span>100.0%</span>（吐血推荐）</div>



                                                                </div>



                                                            </li>



                                                            <li>



                                                                <div class="score-raty-l">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                </div>



                                                                <div class="score-raty-l">



                                                                    <div class="score-raty-progress">



                                                                        <div class="score-raty-progress-in" style="width:0%;"></div>



                                                                    </div>



                                                                    <div class="score-raty-desc"><span>0.0%</span>（重点推荐）</div>



                                                                </div>



                                                            </li>



                                                            <li>



                                                                <div class="score-raty-l">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                </div>



                                                                <div class="score-raty-l">



                                                                    <div class="score-raty-progress">



                                                                        <div class="score-raty-progress-in" style="width:0%;"></div>



                                                                    </div>



                                                                    <div class="score-raty-desc"><span>0.0%</span>（一般推荐）</div>



                                                                </div>



                                                            </li>



                                                            <li>



                                                                <div class="score-raty-l">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                </div>



                                                                <div class="score-raty-l">



                                                                    <div class="score-raty-progress">



                                                                        <div class="score-raty-progress-in" style="width:0%;"></div>



                                                                    </div>



                                                                    <div class="score-raty-desc"><span>0.0%</span>（最好别去）</div>



                                                                </div>



                                                            </li>



                                                            <li>



                                                                <div class="score-raty-l">



                                                                    <img src="images/star-on.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                    <img src="images/star-off.png" alt="">



                                                                </div>



                                                                <div class="score-raty-l">



                                                                    <div class="score-raty-progress">



                                                                        <div class="score-raty-progress-in" style="width:0%;"></div>



                                                                    </div>



                                                                    <div class="score-raty-desc"><span>0.0%</span>（千万别去）</div>



                                                                </div>



                                                            </li>



                                                        </ul>



                                                    </div>



                                                   



                                                </div>



                                                <div class="line-impress-wrap">



                                                    <div class="line-title">线路印象</div>



                                                    <div class="line-impress-box">



                                                        <div class="impress-label">



														   <?php



														    $sql_sel = " select * from  kboy_active_score  where newsid=$newsid";



															$res_sel = mysql_query($sql_sel);



															while($arr=mysql_fetch_array($res_sel)){



															 if(strstr($arr['score_impression'],',')){



															  $strs = explode(',',$arr['score_impression']);



															  $counts = count($strs);



															  for($i=0;$i<$counts;$i++){



															   echo "<span class=\"l-color".($i+1)."\">".$strs[$i]."</span>";



															  }



															 }



															}



														   ?>



                                                        </div>



                                                       



                                                    </div>



                                                </div>



                                            </div>



                                        </div>



                                       



									   



<link rel="stylesheet" href="SunbeamEditor/themes/default/default.css" />



<script charset="utf-8" src="SunbeamEditor/kindeditor.js"></script>



<script charset="utf-8" src="SunbeamEditor/lang/zh_CN.js"></script>



<script language="javascript">



	KindEditor.ready(function(K) {



		var editor = K.create('textarea[name="messagetext"]', {



			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',



			uploadJson : '../../SunbeamEditor/php/upload_json.php',



			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',



			allowFileManager : false,



			items : [



						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',



						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',



						'insertunorderedlist', '|', 'emoticons', 'image', 'link'],



			afterBlur: function(){this.sync();}



		});



	});



</script>















                                        <div class="mdd-item" id="d-hd-10">



                                            <div class="title"><h3>驴友点评</h3></div>

                                            <div class="mdd-item-con">

                                                <div class="mdd-pj">

                                                    <div class="pj-hd">

                                                        <div class="pj-title">说点什么吧...</div>

														<?php  if($_SESSION['kboy_userid']==''){?>

                                                        <div class="btn-group"><a href="reg.php">注册</a><a href="login.php">登录</a></div><?php } ?>

                                                    </div>

													<form action="forum_activemessagesave.php?action=add" method="post" name="messageform" id="messageform">

													<input type="hidden" name="newsid" value="<?php echo $newsid;?>" />

                                                     <div class="pj-box">



                                                        <div class="pj-text">



                                                            <textarea name="messagetext" id="messagetext"></textarea>



                                                        </div>



                                                        <div class="pj">



                                                            <div class="yzm"><span class="tips">验证码：</span><input type="text"  name="messagecode" id="messagecode" /><span class="pic">



															<img src="function/code.php" width="110" height="30" alt="验证码" class="imgCode reshCode" /></span></div>



                                                            <div class="send"><a href="javascript:void(0)" class="fabus">发布</a></div>



                                                        </div>



                                                    </div>



													</form>



													



													



                                                    <div class="pj_bd">



                                                        <div class="tips">评论</div>



                                                        <div class="pj-list">



                                                            <div class="pj-list-in">



                                                                <ul>



																   <?php



																	$SQL = "";



																	$pagesize = 10; // 分页数量



																	$pageval = chkstr(trim($_REQUEST['page'])); // 获取Page的值



																	if($pageval){



																		if(!is_numeric($pageval)){



																			echo erro("Page Error");



																		}



																		if($pageval <= 1){



																			$pageval = 1;



																		}



																		$page = ($pageval-1) * $pagesize;



																		$page .= ",";



																	}else{



																		$pageval = 1;



																	}



																	



																	$pagesql = "select * from kboy_active_message  where newsid=$newsid order by id desc";



																	$pagenum = mysql_num_rows(mysql_query($pagesql)); // 总记录数



																	$pagecount = ceil($pagenum/$pagesize); // 共分多少页



																	if($pageval > $pagecount){



																		$pageval = $pagecount;



																	}



																	



																	$news_sql = $pagesql." limit $page $pagesize";



																	$news_rows = mysql_query($news_sql);



																	$i = 1;



																	while($news_rs = mysql_fetch_assoc($news_rows)){



																	



																?>



                                                                    <li class="pj-list-box">



                                                                        <div class="pj-l">



																		<?php



																			$pic = getClassName('kboy_user','user_face','uid='.$news_rs['uid']);



																			if($pic){



																				$member_pic = $pic;



																			}else{



																				$member_pic = "images/f_pic1_6.jpg";



																			}



																		?>



                                                                            <div class="pic"><a href="forum_news.php?uid=<?=$news_rs['uid']?>"><img src="<?php echo $member_pic;?>" width="48" height="48" alt=""/></a></div>



                                                                            <div class="pj-det">



                                                                                <span><?php echo getUserNickName($news_rs['uid']);?></span>



                                                                                <p><?=stripslashes($news_rs['message_text']);?></p>



                                                                            </div>



                                                                        </div>



                                                                        <div class="pj-date"><?=$news_rs['message_addtime'];?></div>



                                                                    </li>



																	<?php



																	  }



																	?>



                                                                    



                                                                </ul>



                                                            </div>



															   <?php



																if($pagenum > $pagesize){



																	echo "<div class=\"pagination\"><ul>";



																	$url = "activeview.php?newsid=$newsid";//当前页面



																	pagebar($pagecount, $pageval, 10, $url);



																	echo "</ul></div>";



																}



											                  ?>



                                                        </div>



                                                    </div>



													



													



													



                                                </div>



                                            </div>



                                        </div>



                                    </div>



                 



                                </div>



                            </div>



                        </div>



                        <div class="hd-pr">



                            <div class="hd-item">



                                <div class="title">报名列表</div>



                                <div class="sign-nav" id="sign-nav1"><?php if($active_tian<3){ ?><a href="javascript:;" class="current"><?=$nums;?>人参加</a> | <?php }else{ ?><a href="javascript:;" class="current"></a><?php } ?><a href="javascript:;"><?=getNewsNums("kboy_forum_favorite","newsid=$newsid");?>人感兴趣</a></div>



                                <div class="sign-wrap">



                                    <div class="sign-list current">



                                        <div class="hd">



                                            <a class="next"></a>



                                            <a class="prev"></a>



                                        </div>


										<?php if($active_tian<3){?>
                                        <div class="bd">



                                            <div class="ulWrap">



												<?php



												    $i=0;



													$order_sql = "select * from kboy_user  where uid in ( select `uid` from kboy_order where order_states = 0 and aid=".$newsid."  group by uid order by id desc )  order by uid desc  ";

													

													$order_rows = mysql_query($order_sql);



													$order_nums = mysql_num_rows($order_rows); 



													while($order_rs = mysql_fetch_array($order_rows)){



													 if($i%8==0){ echo "<ul>";}



													 $sexnum = getClassName("kboy_user","user_sex","uid=".$order_rs['uid']);



													 if($sexnum==0){$sex='女';}else if($sexnum==1){ $sex= "男";}else{ $sex='保密';} 



													?>



													<li>



                                                        <div class="sign-item">



                                                            <div class="pic"><a href="forum_active.php?uid=<?=$order_rs['uid']?>"><img src="<?=$order_rs['user_face'];?>" width="68" height="68" alt=""/></a></div>



                                                        </div>



                                                        <div class="sign-info">



                                                            <p class="name"><a href="forum_active.php?uid=<?=$order_rs['uid']?>"><?=$order_rs['user_nickname'];?></a></p>



                                                            <p>性别:<?=$sex;?></p>



                                                            <p>人数:<?=getClassName("kboy_order","order_num","uid=".$order_rs['uid']." and aid=".$newsid);?></p>



                                                        </div>


 
                                                    </li>



													<?php



													 if($i%8==7 || ($i%8!=7 && ($i==($order_nums-1)) ) ){ echo "</ul>";}



													$i++;



													}



													?>



                                                



                                            </div>



                                        </div>

									<?php } ?>

                                    </div>

									

									<div class="sign-list">



                                        <div class="hd">



                                            <a class="next"></a>



                                            <a class="prev"></a>



                                        </div>



                                        <div class="bd">



                                            <div class="ulWrap">



                                                



                                                <?php



												    $i=0;



													$order_sql = "select * from kboy_user  where uid in ( select `uid` from kboy_forum_favorite where newsid = ".$newsid." )  order by uid desc limit 16 ";



													$order_rows = mysql_query($order_sql);



													$order_nums = mysql_num_rows($order_rows); 



													while($order_rs = mysql_fetch_array($order_rows)){



													 if($i%8==0){ echo "<ul>";}



													 $sexnum = getClassName("kboy_user","user_sex","uid=".$order_rs['uid']);



													 if($sexnum==0){$sex='女';}else if($sexnum==1){ $sex= "男";}else{ $sex='保密';} 



													?>



													<li>



                                                        <div class="sign-item">



                                                            <div class="pic"><a href="forum_active.php?uid=<?=$order_rs['uid']?>"><img src="<?=$order_rs['user_face'];?>" width="68" height="68" alt=""/></a></div>



                                                        </div>



                                                        <div class="sign-info">



                                                            <p class="name"><a href="forum_active.php?uid=<?=$order_rs['uid']?>"><?=$order_rs['user_nickname'];?></a></p>



                                                            <p>性别:<?=$sex;?></p>



                                                            <p>人数:1</p>



                                                        </div>



                                                    </li>



													<?php



													 if($i%8==7 || ($i%8!=7 && ($i==($order_nums-1)) ) ){ echo "</ul>";}



													$i++;



													}



													?>



                                            </div>



                                        </div>



                                    </div>



                                </div>



                            </div>



                            <div class="hd-item">



                                <div class="title">天气查询</div>



                                <div class="cloud">



                                    <a href="http://www.weather.com.cn/" target="_blank">点击查询</a>



                                </div>



                            </div>

							<div class="hd-item">



                                <div class="title">相关游记</div>



                                <div class="l-hd-list">



								<?php

								$youji = getClassName("kboy_forum_travel","travel_title","aid='$aid'");
								
								$active_sql = " select * from kboy_forum_travel  where aid = '".$aid."' order by travel_addtime desc limit 4 ";

								$active_res = mysql_query($active_sql);
								
								if($youji){
									while($active_arr = mysql_fetch_array($active_res)){
								

								

								?>



                                    <dl>
                                        <dt><a href="forum_travelview.php?newsid=<?php echo $active_arr['id'];?>"><img src="<?php echo $active_arr['travel_pic'];?>" width="90" height="82" alt=""/></a></dt>



                                        <dd><a href="forum_travelview.php?newsid=<?php echo $active_arr['id'];?>"><?php echo $active_arr['travel_title'];?></a></dd>



                                    </dl>



									<?php



									}
								}else{ 
									echo "暂无相关游记";
								}
								if($_SESSION['kboy_userid']){
									echo "<p><a href='forum_travel_add.php?uid=".$_SESSION['kboy_userid']."&aid=".$aid."' style='display: block;color: #fff;background: #4b8ee8;width: 90px;padding: 5px 10px;border-radius: 5px;margin: 10px 0;'>添加我的游记</a></p>";
								}
									?>


                                </div>



                            </div>

                            <div class="hd-item">



                                <div class="title">领队的其他活动</div>



                                <div class="l-hd-list">



								<?php



								$active_sql = " select * from kboy_forum_active  where uid = '".$uid."' and active_state = 0 order by active_top desc,active_order desc, id desc limit 4 ";

								$active_res = mysql_query($active_sql);



								while($active_arr=mysql_fetch_array($active_res)){

								?>



                                    <dl>
										<?php 
											if($active_arr['active_bigclass'] == 135)
											{
												echo "<p>【官方活动】</p>";
											}
											if($active_arr['active_bigclass'] == 136)
											{
												echo "<p>【大型活动】</p>";
											}
											
										?>
			
                                        <dt><a href="activeview.php?newsid=<?php echo $active_arr['id'];?>"><img src="<?php	
							              $active_arrs = explode(',', $active_arr['active_sollimg']);
										  			if($active_arr){
										  				echo $active_arrs[0];
										  			}else{
										  				echo $active_arrs['active_sollimg'];
										  			}
							              ?>" width="90" height="82" alt=""/></a></dt>



                                        <dd><a href="activeview.php?newsid=<?php echo $active_arr['id'];?>"><?php echo cutstr($active_arr['active_text'],30);?></a></dd>



                                    </dl>



									<?php



									}



									?>



                                </div>



                            </div>
							
							

                        </div>



                    </div>



                </div>



            </div>



        </div>



    </div>



    <div class="bd-rule" style="display:none;">



        <div class="content">



            <div class="rule-in">



			



			



			<?php



					$i = 1;



					$bigclass_sql = "select * from kboy_bigclass where id in(108,109,110,111) order by bigclass_order asc, id asc";



					$bigclass_rows = mysql_query($bigclass_sql);



					while($bigclass_rs = mysql_fetch_array($bigclass_rows)){



			?>



                <dl class="rule-<?=$i?>">



                    <dt><i></i><?=$bigclass_rs['bigclass_cn']?></dt>



			<?php



						$news_sql = "select * from kboy_news where news_bigclass=".$bigclass_rs['id']."  order by news_top desc,news_order desc, id desc";



						$news_rows = mysql_query($news_sql);



						while($news_rs = mysql_fetch_array($news_rows)){



			?>



                    <dd><a href="help.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['news_title']?></a></dd>



			<?php



						}



			?>



                </dl>



			<?php



					$i ++ ;



					}



			?>



				



            </div>



        </div>



    </div>

<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
	<script type="text/javascript" src="js/login.js"></script>
	<script type="text/javascript" src="js/alert.js"></script>

	<script type="text/javascript" src="layer/layer.js"></script>

    <script type="text/javascript" src="js/main.js"></script>

    <script type="text/javascript" src="js/activity.js"></script>
    
    
    
	<div class="login-box">
				<div class="quxiao">X</div>
			<div class="title">请填写报名信息</div>
				<form name="regform" id="regform" method="post" action="alert.yuphone.php">
				<input type="hidden" name="redirect_urls" id="redirect_urls" value="<?=$redirect_urls?>" />
				<input type="hidden" name="newsid" id="newsid" value="<?=$newsid?>" />
				<input type="hidden" name="URL" id="URL" value="<?=$URL?>" />
                <div class="login-bd pt24">
                    <div class="f-login-wrap">
                        <div class="f-login-pane current">
		                    <div class="f-login">
		                        <input name="user_phone" id="user_phone" type="text" placeholder="请输入手机号" class="login-input login_mess1" value="">
		                    </div>
		                    <p class="phone_text"></p>
		                    <div class="f-login">
		                        <input name="user_phonecode" type="text" class="login-input login_chest1" id="user_phonecode" value="" placeholder="验证码">
		                        <span class="get-yzm">
		                        	<a href="javascript:;" class="noyzm" >获取验证码</a>
		                        	<a href="javascript:;" class="yesyzm" ><span>60</span>s后再获取</a>
								</span>
		                    </div>
		                    <p></p>
		                    <div class="f-login">
		                        <input name="user_nickname" id="user_nickname" type="text" placeholder="昵称" class="login-input login_name" value="">
		                    </div>
		                     <p></p>
		                    <div class="f-login">
		                        <input name="user_realname" id="user_realname" type="text" placeholder="请输入真实姓名" class="login-input login_name" value="">
		                    </div>
		                    <p class="password_text"></p>
		                    <div class="f-login">
		                        <input name="user_idcard" id="user_idcard" type="text" placeholder="请输入身份证" class="login-input login_password" value="">
		                    </div>
		                    <?php if($active_all_money != 0) {?>
		                    	<p class="password_text"></p>
		                    <div class="f-login">
		                        <input name="shangche" id="shangche" type="text" placeholder="请输入上车地" class="login-input login_password" value="">
		                    </div>
		                    <?php }else{ ?>
		                    	<p class="password_text"></p>
		                    <div class="f-login">
		                        <input name="shangche" id="shangche" type="text" placeholder="请输入集合地" class="login-input login_password" value="">
		                    </div>
		                    <?php } ?>
		                    <div class="login-btn">
		                    	<label class="dian_01"><input type="checkbox" name="ty" class="fuxi" value="1"> <span class="check-txt">我已阅读并同意免责声明条列！</span><span class="check-yuedu">阅读免责声明！</span></label>
									<input type="submit" name="reg_btn" class="basic-btn" value="直接报名" />
								<br /><a href="login.php">已有账号？去登录？</a>
							</div>                           
                        </div>
                        
                    </div>
                </div>
				</form>
            </div>

			<div class="baom">
				<div class="quxiao">
					X
				</div>
			</div>


    <!--foot begin-->



	<? include("_include.bottom.footbar.php") ?>



    <!--foot begin-->



    <!--左侧悬浮 begin-->



	<? include("_include.bottom.leftbar.php") ?>



    <!--左侧悬浮 end-->



    <!--右侧悬浮导航 begin-->



	<? include("_include.bottom.rightbar.php") ?>



    <!--右侧悬浮导航 end-->



    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
	<script type="text/javascript" src="js/login.js"></script>

	 <script type="text/javascript" src="layer/layer.js"></script>

    <script type="text/javascript" src="js/main.js"></script>



    <script type="text/javascript" src="js/activity.js"></script>







    <script type="text/javascript" src="js/sq.js"></script>



	



	<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>



    <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>



	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=54880bc151123d9c63f499234064935f"></script>

	


	<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>



	<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />	
	<script type="text/javascript">
	$("input[name=shangche]").click(function(){
		var aid = $("input[name=newsid]").val();
		var from = $(".qing");
		$.ajax({
				type:"post",
				url:"ajax.php?aid=shang",
				data:{aid:aid},
				dataType:"json",
				success:function(data){
					
					if(data["zong"] > 1){
						$(".baom").css({"height":"240px"});
						var str = '<div class="qing"><p>请选择上车地</p><form><select name="shangched"><option value="">请选择？</option><option value="'+data["data"][0]+'">'+data["data"][0]+'</option><option value="'+data["data"][1]+'">'+data["data"][1]+'</option></select><br /><input type="button" class="duoshang" value="确定"/></form></div>';
					}else{
						if(data['money'] != 0){
							var str = '<div class="qing"><p>上车地：</p><div class="yige"><a href="javascript:;" class="scddian">'+data["data"]+'</a><a href="javascript:;">确定</a></div></div>';
						}else{
							var str = '<div class="qing"><p>集合地点为：</p><div class="yige"><a href="javascript:;" class="scddian">'+data["data"]+'</a><a href="javascript:;">确定</a></div></div>';
						}
					}
					$(".baom").css({"display":"block"});
					$(".yibu").css({"display":"none"});
					from.remove();
					$(".baom").append(str);
					$(".qing .yige").click(function(){
						var scddian = $(".scddian").html();
						$("input[name=shangche]").val(scddian);
						$(".baom").hide();
					})
					$(".duoshang").click(function(){
						var scddian = $("select[name=shangched]").val();
						$("input[name=shangche]").val(scddian);
						$(".baom").hide();
					})
				}
			});
		})
		$(".yibu").click(function(){
			var aid = $("input[name=newsid]").val();
			var from = $(".qing");
			var a = 1;
			if(a==1){
				a=2;
				$.ajax({
					type:"post",
					url:"ajax.php?aid=shang",
					data:{aid:aid},
					dataType:"json",
					success:function(data){
						
						if(data["zong"] > 1){
							$(".baom").css({"height":"240px"});
							var str = '<div class="qing"><p>请选择上车地</p><form action="create_order.php?aid='+aid+'" method="post"><select name="shangche"><option value="">请选择？</option><option value="'+data["data"][0]+'">'+data["data"][0]+'</option><option value="'+data["data"][1]+'">'+data["data"][1]+'</option></select><br /><input type="submit" value="确定"/></form></div>';
						}else{
							if(data['money'] != 0){
								var str = '<div class="qing"><p>您的上车地：</p><div class="yige"><a href="create_order.php?aid='+aid+'">'+data["data"]+'</a><a href="create_order.php?aid='+aid+'">同意</a></div></div>';
							}else{
								var str = '<div class="qing"><p>集合地点为：</p><div class="yige"><a href="create_order.php?aid='+aid+'">'+data["data"]+'</a><a href="create_order.php?aid='+aid+'">同意</a></div></div>';
							}
						}
						$(".baom").css({"display":"block"});
						$(".yibu").css({"display":"none"});
						from.remove();
						$(".baom").append(str);
						a=1;
					}
				});	
			}
			
		})
		$(".quxiao").click(function(){
			$(".baom").css({"display":"none"});
			$(".yibu").css({"display":"block"});
		})
		$(".Xdiao").click(function(){
			$(".single-con-r").css({"display":"none"});
			$(".zhuanj").css({"display":"block"});
		})
		$(".zhuanj").click(function(){
			$(".single-con-r").css({"display":"block"});
			$(".zhuanj").css({"display":"none"});
		})
		$(".login-btn .dian_01 .check-yuedu").click(function(){
			$(".shengming").show();
			$(".shengming .dian_01").hide();
			$(".shengming .yibu2").hide();
		})
	</script>
	<script type="text/javascript">
	</script>
	<script type="text/javascript">
		$(".noyzm").click(function(){
			var phone = $("input[name=user_phone]").val();
			if(phone.replace(/\ /g,"").length<1){
				alert("手机不能为空！");
				return false;
			}
			$.ajax({
				type:"post",
				url:"/duanxin/fileTest.php",
				data:{phone:phone},
				dataType:"json",
				success:function(data){
					if(data == 1){
						var str = '<div class="award-box"><div class="award-hd"><div class="award-tips"><img src="../images/confirm.png" alt=""/></div><div class="award-notice">验证码我们已经通过短信形式发送到</br>您的手机号'+phone+'，请注意查收！</div><span class="rect"></span></div><span class="layui-layer-setwin"><a class="layui-layer-ico layui-layer-close layui-layer-close2" href="javascript:;"></a></span></div>';
						$("body").append(str);
						$(".layui-layer-close").on("click",function(){
							$(".award-box").remove();
						})
					}else if(data == 3){
						alert("手机不能为空");
					}else if(data == 2){
						alert("系统忙请重新发送");
					}
				}
			});
			$(this).hide();
			$(".yesyzm").show().css({"background":"#919191","cursor":"not-allowed"});
			t = setInterval(function(){
				var yes = $(".yesyzm span").html();
				var newyes = yes - 1 ;
				$(".yesyzm span").html(newyes);
				if(newyes == 0){
						clearInterval(t);
						$(".yesyzm span").html(60);
						$(".noyzm").show();
						$(".yesyzm").hide();
				}
			},1000)
		})
	</script>
	<script type="text/javascript">
		$(".phone-yzm").click(function(){
				var url=$(this).attr('href');
			
		var user_phone = $("#user_phone").val();
				alert(user_phone)

		    url =url+"&user_phone="+user_phone;
		$.ajax({

			url: url,

			type: 'get',

			dataType: 'html'

		});
		
			.done(function(data) {

				layer.open({

					type: 1,

					title:false,

					shadeClose: true,

					shift :3,

					area:'530px',

					content: data

				});



			})

			.fail(function() {

				layer.msg('加载失败');

			});
		})
	</script>

	<script>



	$(function(){
		
		
		$("#regform").submit(function(){
			var user_phone = $("#user_phone").val();
			var user_phone_rule = /^1[134578]\d{9}$/;
			var user_phonecode = $("#user_phonecode").val();
			// 手机号验证
			if(!user_phone_rule.test(user_phone)){
				alert("手机号格式错误！！");
				$("#user_phone").focus();
				return false;
			}
			// 验证码验证
			if (user_phonecode.replace(/\ /g,"").length<1){
				alert("请正确输入验证码！");
				$("#user_phonecode").focus();
				return false;
			}
		})
		
		$("input[name=user_phonecode]").blur(function(){
			
			var yzm = $(this).val()+','+$("input[name=user_phone]").val();
			$.ajax({
				type:"post",
				url:"alert.yuphone.php?yzm=val",
				data:{yzm:yzm},
				dataType:"json",
				success:function(data){
					if(data == 10){
						alert("请不要随意手机号！！")
					}
					if(data !=1 ){
						$("input[name=user_realname]").val(data[0]);
						$("input[name=user_idcard]").val(data[1]);
						$("input[name=user_nickname]").val(data[2]);
					}else{
						$("input[name=user_realname]").val('');
						$("input[name=user_idcard]").val('');
						$("input[name=user_nickname]").val('');
						alert('验证码错误')
					}
					
				}
			});
		})
//		IVV徒步奖章
        $(".IVV_t").mouseover(function(){
        	$(".xzpic").show();	
        })
        $(".IVV_t").mouseout(function(){
        	$(".xzpic").hide();	
        })
//		强度等级显示
		$(".strong").mouseover(function(){
			var qq = $(this).siblings("p").attr('qiang');
			if(qq == 151){
				$(".qiang151").show();
			}
			if(qq == 188){
				$(".qiang188").show();
			}
			if(qq == 150){
				$(".qiang150").show();
			}
			if(qq == 152){
				$(".qiang152").show();
			}
			if(qq == 187){
				$(".qiang187").show();
			}
		})
//		强度等级隐藏
		$(".strong").mouseout(function(){
			var qq = $(this).siblings("p").attr('qiang');
			if(qq == 151){
				$(".qiang151").hide();
			}
			if(qq == 188){
				$(".qiang188").hide();
			}
			if(qq == 150){
				$(".qiang150").hide();
			}
			if(qq == 152){
				$(".qiang152").hide();
			}
			if(qq == 187){
				$(".qiang187").hide();
			}
		}) 
		
		
		//活动页导航悬浮



		var h = $('.mdd-bd-nav').offset().top;



		



		$(window).scroll(function(){



			if($(window).scrollTop() >h ){$('.mdd-bd-nav').addClass('setfixed');}



			else{$('.mdd-bd-nav').removeClass('setfixed');}



		});



		



		var d_hd_1=$("#d-hd-1").offset().top-150; 



		var d_hd_2=$("#d-hd-2").offset().top-150; 



		var d_hd_3=$("#d-hd-3").offset().top-150; 



		var d_hd_4=$("#d-hd-4").offset().top-150; 



		var d_hd_5=$("#d-hd-5").offset().top-150; 



		var d_hd_6=$("#d-hd-6").offset().top-150; 



		var d_hd_7=$("#d-hd-7").offset().top-150; 



		var d_hd_9=$("#d-hd-9").offset().top-150; 



		var d_hd_10=$("#d-hd-10").offset().top-150; 



	



		$(window).scroll(function(event) {



			 var juanqu=$(document).scrollTop(); 



			 if(juanqu>= d_hd_10)



			 {



				$(".mdd-bd-nav li").eq(8).addClass('on').siblings().removeClass('on');



			 }



			 else if(juanqu>=d_hd_9)



			 {



				$(".mdd-bd-nav li").eq(7).addClass('on').siblings().removeClass('on');



			 }



			 else if(juanqu>=d_hd_7)



			 {



				$(".mdd-bd-nav li").eq(6).addClass('on').siblings().removeClass('on');



			 }



			 else if(juanqu>=d_hd_6)



			 {



				$(".mdd-bd-nav li").eq(5).addClass('on').siblings().removeClass('on');   



			 }



			 else if(juanqu>=d_hd_5)



			 {



				$(".mdd-bd-nav li").eq(4).addClass('on').siblings().removeClass('on');  



			 }



			 else if(juanqu>=d_hd_4)



			 {	



				$(".mdd-bd-nav li").eq(3).addClass('on').siblings().removeClass('on');    



			 }



			 else if(juanqu>=d_hd_3)



			 {



				$(".mdd-bd-nav li").eq(2).addClass('on').siblings().removeClass('on');  



			 }



			 else if(juanqu>=d_hd_2)



			 {	



				$(".mdd-bd-nav li").eq(1).addClass('on').siblings().removeClass('on');  



			 }



			 else if(juanqu>=d_hd_1)



			 {



				$(".mdd-bd-nav li").eq(0).addClass('on').siblings().removeClass('on');  



			 }



		});







	})



    </script>

	<script type="text/javascript">
		//点击取消预约
		$(".quxiao").click(function(){
			$(".login-box").css({"display":"none"});
		})
		$(".ask-bmn a").click(function(){
			$(".login-box").css({"display":"block"});
		})
	</script>

    <script type="text/javascript">



        jQuery(".project-case").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",vis:3,trigger:"click",pnLoop:false});



        jQuery(".team-list").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",vis:7,trigger:"click",pnLoop:false});



        jQuery(".single-con-r").slide({titCell:".hd ul",mainCell:".bd .ulWrap",effect:"left",vis:1,pnLoop:false});



        jQuery(".sign-list").slide({titCell:".hd ul",mainCell:".bd .ulWrap",effect:"left",vis:2,pnLoop:false});



        jQuery(".hd-xc").slide({titCell:".hd ul",mainCell:".bd ul",effect:"leftLoop",autoPage:true,vis:3,trigger:"click"});



		// 刷新验证码



		$(".reshCode").click(function(){



			$(".imgCode").attr("src","function/code.php?nums=" + Math.random());   



		});



		



		$(".fabus").click(function(){



			var  messagetext = $("#messagetext").val();



			var  messagecode = $("#messagecode").val();



			if(messagetext.replace(/\ /g,"").length<1){



				alert("评论内容不能为空！");



				$("#messagetext").focus();



				return false;



			}



			else if (messagecode.replace(/\ /g,"").length<1){



				alert("请正确输入验证码！");



				$("#messagecode").focus();



				return false;



			}



			else if (isNaN(messagecode.replace(/\ /g,""))){



				alert("请正确输入验证码！");



				$("#messagecode").focus();



				return false;



			}



			else{



			  document.messageform.submit();



			}



		});



    </script>



	<script type="text/javascript">

	// 百度地图API功能

	var map = new BMap.Map("allmap");

	var point = new BMap.Point(116.331398,39.897445);
	map.centerAndZoom(point,12);
	map.enableScrollWheelZoom();
	var center = "<?php echo $active_end_city;?>" ;

	
	// 创建地址解析器实例

	var myGeo = new BMap.Geocoder();

	// 将地址解析结果显示在地图上,并调整地图视野

	myGeo.getPoint("<?php echo $active_end_city;?>", function(point){

		if (point) {

			map.centerAndZoom(point, 16);

		    var marker = new BMap.Marker(point); //创建marker对象

			map.addOverlay(marker);

			 marker.addEventListener("click", function(e){

				searchInfoWindow.open(marker);

			})

			var searchInfoWindow = new BMapLib.SearchInfoWindow(map, "<?php echo $active_end_city;?>", {

				title: "目的地地点", //标题

				panel : "panel", //检索结果面板

				enableAutoPan : true, //自动平移
				
				searchTypes :[

					BMAPLIB_TAB_FROM_HERE, //从这里出发

					BMAPLIB_TAB_SEARCH   //周边检索

				]

			});			

		}else{

			alert("您选择地址没有解析到结果!");

		}

	}, "北京市");
</script>

<script type="text/javascript">
										$(function(){
											var lbhd = $(".lbhd").length;
											var c = 0;
														function run(){
															c++;
															c = (c == lbhd)?0:c;
															$(".lbhd").eq(c).stop().fadeIn(300).siblings('img').stop().fadeOut(300);
															//让c号li变红，其他的变灰
															$(".thumb img").eq(c).css({'opacity':'1'}).siblings('img').css({'opacity':'0.3'});
														}
														
														timer = setInterval(run,2000);
														$(".thumb img").hover(function(){
																c = $(this).index();
													//			让c号图片显示，其他的隐藏
																t = setTimeout(function(){
																$(".lbhd").eq(c).stop().fadeIn(300).siblings('img').stop().fadeOut(300);
													//			让c号li变红，其他的变灰
																$(".thumb img").eq(c).css({'opacity':'1'}).siblings('img').css({'opacity':'0.3'});
																},200)
															},function(){
																clearTimeout(t);
																//移出事件
															})
														$(".gundong").mousemove(function(){
															clearInterval(timer);
														})	
//															
//															
														$(".gundong").mouseleave(function(){
																timer = setInterval(run,2000);
														})
														$(".leftlun").click(function(){
															c--;
															if(c==-1){
																c=lbhd-1;
															}
															$(".lbhd").eq(c).stop().fadeIn(300).siblings('img').stop().fadeOut(300);
													//			让c号li变红，其他的变灰
																$(".thumb img").eq(c).css({'opacity':'1'}).siblings('img').css({'opacity':'0.3'});
														})
														
														$(".rightlun").click(function(){
															c++;
															if(c==lbhd){
																c=0;
															}
															$(".lbhd").eq(c).stop().fadeIn(300).siblings('img').stop().fadeOut(300);
													//			让c号li变红，其他的变灰
																$(".thumb img").eq(c).css({'opacity':'1'}).siblings('img').css({'opacity':'0.3'});
															
														})
										})
									</script>

</body>



</html>

<script type="text/javascript">
	$(function(){
		$(".bjmj_01 a").click(function(){
					$(".shengming").show();
		});   
		$(".dian_01").click(function(){
			$(".yibu").toggle().css({"background":"#4b8ee8","color":"#f3f2f5"});
			$(".yibu2").toggle().css({"background":"#f3f2f5","color":"#4b8ee8"});
		})
		$(".check-txt").click(function(){
			$(".yibu").toggle().css({"background":"#4b8ee8","color":"#f3f2f5"});
			$(".yibu2").toggle().css({"background":"#f3f2f5","color":"#4b8ee8"});
		})
		$(".yibu2").click(function(){
			alert("请点击“我已阅读……”，方可报名");
		})
		$(".smX").click(function(){
			$(".shengming").hide();
		})
	});
</script>





